<%@ Register TagPrefix="Wrox" Namespace="WroxControls" Assembly="RatingMeter" %>

<html>

<head>

<style>
  hr { width:760;text-align:left; }
  body {  font: 8pt verdana; }
  body div {  font: 8pt tahoma, verdana; }
  h1   { font-size:22pt }
  h4   { font-size:12pt }
  h5   { color:darkblue;font-weight:600 }
  span.caption { font-size:10pt; color:black; font-weight:600; margin-top:5 }
  div.caption { font-size:10pt; color:darkgreen; font-weight:600; margin-top:5 }
  img { border-color:black }
  a.srcview { font-size:9pt;}
  table.srcview { width="90%"; }
  table { background-color:beige;border-width:1;border-color:black;border-style:solid}
</style>
</head>

<script language="C#" runat="server">

</script>
<body>

<h1>The Rating Meter Server Control</h1>
<p>The rating meter server control enables you to create 'rating bars' that graphically represent the overall rating of an item, based upon a simple formula of score / total votes.
<h3>Control Properties

<table border=1>
<tr><td>Property<td>Type<td>Description</td>
<tr><td>Votes<td>Long<td>The total number of votes cast so far</td>
<tr><td>MaxRating<td>Long<td>The maximum value any one vote can equal.  This value also define the number of cells shown in the rating bar
<tr><td>Score<td>Double<td>The total score to date</td>
<tr><td>CellWidth<td>Long<td>The width of each cell within the rating number</td>
<tr><td>CellHeight<td>Long<td>The height of each cell within the rating number</td>
</table>
<HR >

<P>

<Wrox:RatingMeter runat="server" Score=8 Votes=5 MaxRating=5 CellWidth=5 CellHeight=5 />
<Wrox:RatingMeter runat="server" Score=5 Votes=8 MaxRating=5 CellWidth=10 CellHeight=10 />
<Wrox:RatingMeter runat="server" Score=5 Votes=12 MaxRating=5 CellWidth=15 CellHeight=15/>
<Wrox:RatingMeter runat="server" Score=24 Votes=21 MaxRating=5 CellWidth=20 CellHeight=20/>
<Wrox:RatingMeter runat="server" Score=56 Votes=24 MaxRating=5 CellWidth=25 CellHeight=25 />

<Wrox:RatingMeter runat="server" Score=8 Votes=5 MaxRating=5 CellWidth=5 CellHeight=5 ShowText=false />
<Wrox:RatingMeter runat="server" Score=10 Votes=5 MaxRating=5 CellWidth=10 CellHeight=10 ShowText=false />
<Wrox:RatingMeter runat="server" Score=14 Votes=5 MaxRating=5 CellWidth=15 CellHeight=15 ShowText=false />
<Wrox:RatingMeter runat="server" Score=23 Votes=5 MaxRating=5 CellWidth=20 CellHeight=20 ShowText=false />
<Wrox:RatingMeter runat="server" Score=25 Votes=5 MaxRating=5 CellWidth=25 CellHeight=25 ShowText=false />

<Wrox:RatingMeter runat="server" Score=5 Votes=5 MaxRating=5 CellWidth=5 CellHeight=65 ShowText=false />
<Wrox:RatingMeter runat="server" Score=15 Votes=5 MaxRating=5 CellWidth=5 CellHeight=65 ShowText=false />
<Wrox:RatingMeter runat="server" Score=25 Votes=5 MaxRating=5 CellWidth=5 CellHeight=65 ShowText=false />

<Wrox:RatingMeter runat="server" Score=3 Votes=5 MaxRating=5 CellWidth=115 CellHeight=25 ShowText=false />
<Wrox:RatingMeter runat="server" Score=17 Votes=5 MaxRating=5 CellWidth=115 CellHeight=25 ShowText=false />
<Wrox:RatingMeter runat="server" Score=23.5 Votes=5 MaxRating=5 CellWidth=115 CellHeight=25 ShowText=false />

</form>
</body>
</html>